home *** CD-ROM | disk | FTP | other *** search
Wrap
@echo off :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: :: BE CAREFUL IF YOU MODIFY THIS FILE! :: At least make a backup copy before you do anything, :: but feel free to check it out. :: :: Mail me of you do something cool: MrShannon@execpc.com :: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: if %1==decod set path=%path%;c:\progra~1\Rc-MP3\ :: The path must be set so the decoder can find Go32.exe :::: :: If you're getting the error "Cannot exec go32" there ::::: :: is a "fix" for it later in this bat file. keep looking :: ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: setting the default values, then loading the user defined set bitrate=160 set coder=Blade set priority=LOWEST set outdir=active if exist c:\progra~1\Rc-MP3\bitrate.bat call c:\progra~1\Rc-MP3\bitrate.bat if exist c:\progra~1\Rc-MP3\coder.bat call c:\progra~1\Rc-MP3\coder.bat if exist c:\progra~1\Rc-MP3\priority.bat call c:\progra~1\Rc-MP3\priority.bat if exist c:\progra~1\Rc-MP3\outdir.bat call c:\progra~1\Rc-MP3\outdir.bat :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: my "plea screen" checks for a certian file. if it's there, :: it doesn't show the screen. Otherwise it shows the screen :: then makes the file so it doesn't sho again. if exist "c:\progra~1\Rc-MP3\Support_Rc_MP3_v1.65e.txt" goto nextj echo. echo. echo. __________________________________________________________________ echo. THIS IS THE ONLY TIME YOU'LL SEE THIS MESSAGE echo. echo. Please help! Because of RightClick-MP3's sudden popularity, and the echo. overwhelming number of downloads per week, I am going to be charged echo. for bandwidth usages. Please understand that my intention is for echo. RightClick-MP3 to be free, but I need help with the bandwith charges. echo. If you would donate just one dollar to help me pay for the bandwith, echo. then I can continue to make RightClick-MP3, and newer versions, echo. available for download. echo. echo. So if you dig RightClick-MP3, please, send me a dollar or one unit echo. of your country's paper currency to this address: echo. . echo. MrShannon (Rc-MP3) . This info is also in your echo. P.O. Box 304 . Start button under Programs, echo. Pewaukee, WI 53072 . RightClick-MP3, Rc-MP3 Help echo. USA . echo. echo. My sincerest thanks! echo. echo. echo. Please press "R" (capitol r) to indicate you've read this... :wrongchar c:\progra~1\Rc-MP3\getchar.com if errorlevel 82 if not errorlevel 83 goto gotanR goto wrongchar :gotanR cls echo. If you dig RightClick-MP3, please, send me a dollar or one unit >c:\progra~1\Rc-MP3\Support_Rc_MP3_v1.65e.txt echo. of your country's paper currency to this address: >>c:\progra~1\Rc-MP3\Support_Rc_MP3_v1.65e.txt echo. >>c:\progra~1\Rc-MP3\Support_Rc_MP3_v1.65e.txt echo. MrShannon (Rc-MP3) >>c:\progra~1\Rc-MP3\Support_Rc_MP3_v1.65e.txt echo. P.O. Box 304 >>c:\progra~1\Rc-MP3\Support_Rc_MP3_v1.65e.txt echo. Pewaukee, WI 53072 >>c:\progra~1\Rc-MP3\Support_Rc_MP3_v1.65e.txt echo. USA >>c:\progra~1\Rc-MP3\Support_Rc_MP3_v1.65e.txt echo. >>c:\progra~1\Rc-MP3\Support_Rc_MP3_v1.65e.txt echo. My sincerest thanks! >>c:\progra~1\Rc-MP3\Support_Rc_MP3_v1.65e.txt :nextj :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: checks to see if we can use ANSI color. if yes, then we :: load it, if not, then we stay in black 'n white. if exist c:\progra~1\Rc-MP3\RcMP3ans.sys c:\progra~1\Rc-MP3\RcMP3dev.com c:\progra~1\Rc-MP3\RcMP3ans.sys if NOT exist c:\progra~1\Rc-MP3\RcMP3ans.sys goto itsNT set TheOS=Win95 echo. echo. ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ echo. http://execpc.com/MrShannon/ █ RightClick-MP3 v1.65 █ echo. MrShannon@execpc.com ▀▀▌ * by MrShannon * ▐▀▀ echo. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ echo. echo. goto contin :itsNT set TheOS=WinNT echo. ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄ echo. http://execpc.com/MrShannon/ █ RightClick-MP3 v1.65 █ echo. MrShannon@execpc.com ▀▀▌ * by MrShannon * ▐▀▀ echo. ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ echo. echo. :contin :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: reads in the command line switches and asigns them to :: named variables, then determins what we're doing, and :: writes that information to the screen. set mode=%1 set file=%2 set optn=%3 if %mode%==encod set ext=mp3 if %mode%==decod set ext=wav if %TheOS%==WinNT goto not95 echo. Ready to %mode%e %file% if %optn%==delenc echo. and delete the .WAV when finished. if %optn%==dirdelenc echo. and delete the .WAV(s) when finished. goto finalstp :not95 echo. Ready to %mode%e %file% if %optn%==delenc echo. and delete the .WAV when finished. if %optn%==dirdelenc echo. and delete the .WAV(s) when finished. echo. :finalstp if %TheOS%==Win95 echo. if %TheOS%==WinNT echo. if NOT %mode%==decod echo. Using......... %coder%Enc. set encWvbr=nope if %bitrate%==1 set encWvbr=yep if %bitrate%==30 set encWvbr=yep if %bitrate%==50 set encWvbr=yep if %bitrate%==75 set encWvbr=yep if %bitrate%==100 set encWvbr=yep if %mode%==encod if %encWvbr%==nope echo. Bitrate is.... %bitrate%kbps. if %encWvbr%==nope goto skip if %mode%==encod if %bitrate%==1 echo. vBitrate is... Low if %mode%==encod if %bitrate%==1 echo. (Approx. 96kbps) if %mode%==encod if %bitrate%==30 echo. vBitrate is... Normal/Low if %mode%==encod if %bitrate%==30 echo. (Approx. 112kbps) if %mode%==encod if %bitrate%==50 echo. vBitrate is... Normal if %mode%==encod if %bitrate%==50 echo. (Approx. 128kbps) if %mode%==encod if %bitrate%==75 echo. vBitrate is... Normal/High if %mode%==encod if %bitrate%==75 echo. (Approx. 160kbps) if %mode%==encod if %bitrate%==100 echo. vBitrate is... High if %mode%==encod if %bitrate%==100 echo. (Approx. 192kbps) :skip if %mode%==encod if %coder%==Blade echo. Priority is... %priority%. if NOT %outdir%==active echo. if NOT %outdir%==active echo. Output Directory is... %outdir% if NOT %outdir%==active echo. if %TheOS%==Win95 echo. if %TheOS%==WinNT echo. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: after we show the user what we're doing, we ask if they :: want to keep going, giving the opportunity to quit. echo Press any key to continue or 'X' to eXit. c:\progra~1\Rc-MP3\getchar.com if errorlevel 88 if not errorlevel 89 goto end if errorlevel 120 if not errorlevel 121 goto end :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: if they made it to this point they wanna keep going, so :: we tell 'em we're doing it. cls if %TheOS%==Win95 echo. Now %mode%ing [ RightClick-MP3 - http://execpc.com/MrShannon/ ] if NOT %TheOS%==Win95 echo. Now %mode%ing [ RightClick-MP3 - http://execpc.com/MrShannon/ ] if %mode%==encod goto wavtomp3 :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: this section is for decoding an mp3 to a wav file. The :: decoder seems to need the mp3 file to be in the same dir :: as the exe itself, so we'll have to copy the mp3 to the :: rc-mp3\ dir. before we do that, we're gonna rename it, :: and this part determins the temp name for this copied mp3 set temp_file=full if NOT exist c:\progra~1\Rc-MP3\tempE.mpx set tmp_file=tempE.mpx if NOT exist c:\progra~1\Rc-MP3\tempD.mpx set tmp_file=tempD.mpx if NOT exist c:\progra~1\Rc-MP3\tempC.mpx set tmp_file=tempC.mpx if NOT exist c:\progra~1\Rc-MP3\tempB.mpx set tmp_file=tempB.mpx if NOT exist c:\progra~1\Rc-MP3\tempA.mpx set tmp_file=tempA.mpx if NOT exist c:\progra~1\Rc-MP3\temp9.mpx set tmp_file=temp9.mpx if NOT exist c:\progra~1\Rc-MP3\temp8.mpx set tmp_file=temp8.mpx if NOT exist c:\progra~1\Rc-MP3\temp7.mpx set tmp_file=temp7.mpx if NOT exist c:\progra~1\Rc-MP3\temp6.mpx set tmp_file=temp6.mpx if NOT exist c:\progra~1\Rc-MP3\temp5.mpx set tmp_file=temp5.mpx if NOT exist c:\progra~1\Rc-MP3\temp4.mpx set tmp_file=temp4.mpx if NOT exist c:\progra~1\Rc-MP3\temp3.mpx set tmp_file=temp3.mpx if NOT exist c:\progra~1\Rc-MP3\temp2.mpx set tmp_file=temp2.mpx if NOT exist c:\progra~1\Rc-MP3\temp1.mpx set tmp_file=temp1.mpx if NOT exist c:\progra~1\Rc-MP3\temp.mpx set tmp_file=temp.mpx if tmp_file==full goto Max_tmp :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: now we need to come up with a name for the file we're :: going to be making, taking into account the fact that you :: might be using an output directory... set newfile=full if NOT %outdir%==active goto nfod if NOT exist !New-30!.%ext% set newfile=!New-30!.%ext% if NOT exist !New-29!.%ext% set newfile=!New-29!.%ext% if NOT exist !New-28!.%ext% set newfile=!New-28!.%ext% if NOT exist !New-27!.%ext% set newfile=!New-27!.%ext% if NOT exist !New-26!.%ext% set newfile=!New-26!.%ext% if NOT exist !New-25!.%ext% set newfile=!New-25!.%ext% if NOT exist !New-24!.%ext% set newfile=!New-24!.%ext% if NOT exist !New-23!.%ext% set newfile=!New-23!.%ext% if NOT exist !New-22!.%ext% set newfile=!New-22!.%ext% if NOT exist !New-21!.%ext% set newfile=!New-21!.%ext% if NOT exist !New-20!.%ext% set newfile=!New-20!.%ext% if NOT exist !New-19!.%ext% set newfile=!New-19!.%ext% if NOT exist !New-18!.%ext% set newfile=!New-18!.%ext% if NOT exist !New-17!.%ext% set newfile=!New-17!.%ext% if NOT exist !New-16!.%ext% set newfile=!New-16!.%ext% if NOT exist !New-15!.%ext% set newfile=!New-15!.%ext% if NOT exist !New-14!.%ext% set newfile=!New-14!.%ext% if NOT exist !New-13!.%ext% set newfile=!New-13!.%ext% if NOT exist !New-12!.%ext% set newfile=!New-12!.%ext% if NOT exist !New-11!.%ext% set newfile=!New-11!.%ext% if NOT exist !New-10!.%ext% set newfile=!New-10!.%ext% if NOT exist !New-09!.%ext% set newfile=!New-09!.%ext% if NOT exist !New-08!.%ext% set newfile=!New-08!.%ext% if NOT exist !New-07!.%ext% set newfile=!New-07!.%ext% if NOT exist !New-06!.%ext% set newfile=!New-06!.%ext% if NOT exist !New-05!.%ext% set newfile=!New-05!.%ext% if NOT exist !New-04!.%ext% set newfile=!New-04!.%ext% if NOT exist !New-03!.%ext% set newfile=!New-03!.%ext% if NOT exist !New-02!.%ext% set newfile=!New-02!.%ext% if NOT exist !New-01!.%ext% set newfile=!New-01!.%ext% if NOT exist !New!.%ext% set newfile=!New!.%ext% goto nfend :nfod if NOT exist %outdir%\!New-30!.%ext% set newfile=%outdir%\!New-30!.%ext% if NOT exist %outdir%\!New-29!.%ext% set newfile=%outdir%\!New-29!.%ext% if NOT exist %outdir%\!New-28!.%ext% set newfile=%outdir%\!New-28!.%ext% if NOT exist %outdir%\!New-27!.%ext% set newfile=%outdir%\!New-27!.%ext% if NOT exist %outdir%\!New-26!.%ext% set newfile=%outdir%\!New-26!.%ext% if NOT exist %outdir%\!New-25!.%ext% set newfile=%outdir%\!New-25!.%ext% if NOT exist %outdir%\!New-24!.%ext% set newfile=%outdir%\!New-24!.%ext% if NOT exist %outdir%\!New-23!.%ext% set newfile=%outdir%\!New-23!.%ext% if NOT exist %outdir%\!New-22!.%ext% set newfile=%outdir%\!New-22!.%ext% if NOT exist %outdir%\!New-21!.%ext% set newfile=%outdir%\!New-21!.%ext% if NOT exist %outdir%\!New-20!.%ext% set newfile=%outdir%\!New-20!.%ext% if NOT exist %outdir%\!New-19!.%ext% set newfile=%outdir%\!New-19!.%ext% if NOT exist %outdir%\!New-18!.%ext% set newfile=%outdir%\!New-18!.%ext% if NOT exist %outdir%\!New-17!.%ext% set newfile=%outdir%\!New-17!.%ext% if NOT exist %outdir%\!New-16!.%ext% set newfile=%outdir%\!New-16!.%ext% if NOT exist %outdir%\!New-15!.%ext% set newfile=%outdir%\!New-15!.%ext% if NOT exist %outdir%\!New-14!.%ext% set newfile=%outdir%\!New-14!.%ext% if NOT exist %outdir%\!New-13!.%ext% set newfile=%outdir%\!New-13!.%ext% if NOT exist %outdir%\!New-12!.%ext% set newfile=%outdir%\!New-12!.%ext% if NOT exist %outdir%\!New-11!.%ext% set newfile=%outdir%\!New-11!.%ext% if NOT exist %outdir%\!New-10!.%ext% set newfile=%outdir%\!New-10!.%ext% if NOT exist %outdir%\!New-09!.%ext% set newfile=%outdir%\!New-09!.%ext% if NOT exist %outdir%\!New-08!.%ext% set newfile=%outdir%\!New-08!.%ext% if NOT exist %outdir%\!New-07!.%ext% set newfile=%outdir%\!New-07!.%ext% if NOT exist %outdir%\!New-06!.%ext% set newfile=%outdir%\!New-06!.%ext% if NOT exist %outdir%\!New-05!.%ext% set newfile=%outdir%\!New-05!.%ext% if NOT exist %outdir%\!New-04!.%ext% set newfile=%outdir%\!New-04!.%ext% if NOT exist %outdir%\!New-03!.%ext% set newfile=%outdir%\!New-03!.%ext% if NOT exist %outdir%\!New-02!.%ext% set newfile=%outdir%\!New-02!.%ext% if NOT exist %outdir%\!New-01!.%ext% set newfile=%outdir%\!New-01!.%ext% if NOT exist %outdir%\!New!.%ext% set newfile=%outdir%\!New!.%ext% :nfend if %newfile%==full goto Max :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: now that we've found the new file's name, we can show it, :: then copy the mp3 to it temp location\name, decode the :: thing, then delete the temp file. echo. %file% echo. into %newfile% echo. echo. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::: if you're getting the error "Cannot exec go32" :::::: :::::: delete the word "REM" from the two lines below :::::: REM copy c:\progra~1\Rc-MP3\go32.exe go32.exe >nul ::^- that is the first line :::::::::::::::::::::::::::::::: copy %file% c:\progra~1\Rc-MP3\%tmp_file% >nul call c:\progra~1\Rc-MP3\RcMP3dec.exe c:\progra~1\Rc-MP3\%tmp_file% %newfile% -wav del c:\progra~1\Rc-MP3\%tmp_file% >nul :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: REM del go32.exe >nul ::^- that is the second line ::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: now that we're done decoding the mp3, we can make sure :: the decoding was sucessful, but we'll do that elsewhere goto check :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: here we are, with intent on making a new mp3. first we :: find out of we're s'posed to just encode one file or a :: whole directory, and if we're supposed to delete the wav :: files after encoding :wavtomp3 if %optn%==direnc if not exist %file%\*.wav goto nowavs if %optn%==dirdelenc if not exist %file%\*.wav goto nowavs if %optn%==enc if not exist %file% goto nowavs if %optn%==delenc if not exist %file% goto nowavs :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: I used to tell what the new file name was, but that got a :: bit complicated with this mode so I just snipped that out echo. %file% echo. echo. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: figure what encoder we're working with. If it's Xing's :: MP3Encoder, we have to make up out own name for the new :: files, just like with decoding. if %coder%==Blade goto blade set newfile=full if NOT %outdir%==active goto xnfod if NOT exist !New-30!.%ext% set newfile=!New-30!.%ext% if NOT exist !New-29!.%ext% set newfile=!New-29!.%ext% if NOT exist !New-28!.%ext% set newfile=!New-28!.%ext% if NOT exist !New-27!.%ext% set newfile=!New-27!.%ext% if NOT exist !New-26!.%ext% set newfile=!New-26!.%ext% if NOT exist !New-25!.%ext% set newfile=!New-25!.%ext% if NOT exist !New-24!.%ext% set newfile=!New-24!.%ext% if NOT exist !New-23!.%ext% set newfile=!New-23!.%ext% if NOT exist !New-22!.%ext% set newfile=!New-22!.%ext% if NOT exist !New-21!.%ext% set newfile=!New-21!.%ext% if NOT exist !New-20!.%ext% set newfile=!New-20!.%ext% if NOT exist !New-19!.%ext% set newfile=!New-19!.%ext% if NOT exist !New-18!.%ext% set newfile=!New-18!.%ext% if NOT exist !New-17!.%ext% set newfile=!New-17!.%ext% if NOT exist !New-16!.%ext% set newfile=!New-16!.%ext% if NOT exist !New-15!.%ext% set newfile=!New-15!.%ext% if NOT exist !New-14!.%ext% set newfile=!New-14!.%ext% if NOT exist !New-13!.%ext% set newfile=!New-13!.%ext% if NOT exist !New-12!.%ext% set newfile=!New-12!.%ext% if NOT exist !New-11!.%ext% set newfile=!New-11!.%ext% if NOT exist !New-10!.%ext% set newfile=!New-10!.%ext% if NOT exist !New-09!.%ext% set newfile=!New-09!.%ext% if NOT exist !New-08!.%ext% set newfile=!New-08!.%ext% if NOT exist !New-07!.%ext% set newfile=!New-07!.%ext% if NOT exist !New-06!.%ext% set newfile=!New-06!.%ext% if NOT exist !New-05!.%ext% set newfile=!New-05!.%ext% if NOT exist !New-04!.%ext% set newfile=!New-04!.%ext% if NOT exist !New-03!.%ext% set newfile=!New-03!.%ext% if NOT exist !New-02!.%ext% set newfile=!New-02!.%ext% if NOT exist !New-01!.%ext% set newfile=!New-01!.%ext% if NOT exist !New!.%ext% set newfile=!New!.%ext% goto xnfend :xnfod :: this is the backwards compatibility for Xing's MP3Encoder v1.02 :: to use it, you must manually edit the coder.bat file if %coder%==X3v102 goto x102nfod if NOT exist %outdir%\!New-30!.%ext% set newfile=%outdir%\!New-30!.%ext% if NOT exist %outdir%\!New-29!.%ext% set newfile=%outdir%\!New-29!.%ext% if NOT exist %outdir%\!New-28!.%ext% set newfile=%outdir%\!New-28!.%ext% if NOT exist %outdir%\!New-27!.%ext% set newfile=%outdir%\!New-27!.%ext% if NOT exist %outdir%\!New-26!.%ext% set newfile=%outdir%\!New-26!.%ext% if NOT exist %outdir%\!New-25!.%ext% set newfile=%outdir%\!New-25!.%ext% if NOT exist %outdir%\!New-24!.%ext% set newfile=%outdir%\!New-24!.%ext% if NOT exist %outdir%\!New-23!.%ext% set newfile=%outdir%\!New-23!.%ext% if NOT exist %outdir%\!New-22!.%ext% set newfile=%outdir%\!New-22!.%ext% if NOT exist %outdir%\!New-21!.%ext% set newfile=%outdir%\!New-21!.%ext% if NOT exist %outdir%\!New-20!.%ext% set newfile=%outdir%\!New-20!.%ext% if NOT exist %outdir%\!New-19!.%ext% set newfile=%outdir%\!New-19!.%ext% if NOT exist %outdir%\!New-18!.%ext% set newfile=%outdir%\!New-18!.%ext% if NOT exist %outdir%\!New-17!.%ext% set newfile=%outdir%\!New-17!.%ext% if NOT exist %outdir%\!New-16!.%ext% set newfile=%outdir%\!New-16!.%ext% if NOT exist %outdir%\!New-15!.%ext% set newfile=%outdir%\!New-15!.%ext% if NOT exist %outdir%\!New-14!.%ext% set newfile=%outdir%\!New-14!.%ext% if NOT exist %outdir%\!New-13!.%ext% set newfile=%outdir%\!New-13!.%ext% if NOT exist %outdir%\!New-12!.%ext% set newfile=%outdir%\!New-12!.%ext% if NOT exist %outdir%\!New-11!.%ext% set newfile=%outdir%\!New-11!.%ext% if NOT exist %outdir%\!New-10!.%ext% set newfile=%outdir%\!New-10!.%ext% if NOT exist %outdir%\!New-09!.%ext% set newfile=%outdir%\!New-09!.%ext% if NOT exist %outdir%\!New-08!.%ext% set newfile=%outdir%\!New-08!.%ext% if NOT exist %outdir%\!New-07!.%ext% set newfile=%outdir%\!New-07!.%ext% if NOT exist %outdir%\!New-06!.%ext% set newfile=%outdir%\!New-06!.%ext% if NOT exist %outdir%\!New-05!.%ext% set newfile=%outdir%\!New-05!.%ext% if NOT exist %outdir%\!New-04!.%ext% set newfile=%outdir%\!New-04!.%ext% if NOT exist %outdir%\!New-03!.%ext% set newfile=%outdir%\!New-03!.%ext% if NOT exist %outdir%\!New-02!.%ext% set newfile=%outdir%\!New-02!.%ext% if NOT exist %outdir%\!New-01!.%ext% set newfile=%outdir%\!New-01!.%ext% if NOT exist %outdir%\!New!.%ext% set newfile=%outdir%\!New!.%ext% goto xnfend :: the rest of the backwards compatibility :x102nfod if NOT exist %outdir%\!New-30!.%ext% set newfile=!New-30!.%ext% if NOT exist %outdir%\!New-29!.%ext% set newfile=!New-29!.%ext% if NOT exist %outdir%\!New-28!.%ext% set newfile=!New-28!.%ext% if NOT exist %outdir%\!New-27!.%ext% set newfile=!New-27!.%ext% if NOT exist %outdir%\!New-26!.%ext% set newfile=!New-26!.%ext% if NOT exist %outdir%\!New-25!.%ext% set newfile=!New-25!.%ext% if NOT exist %outdir%\!New-24!.%ext% set newfile=!New-24!.%ext% if NOT exist %outdir%\!New-23!.%ext% set newfile=!New-23!.%ext% if NOT exist %outdir%\!New-22!.%ext% set newfile=!New-22!.%ext% if NOT exist %outdir%\!New-21!.%ext% set newfile=!New-21!.%ext% if NOT exist %outdir%\!New-20!.%ext% set newfile=!New-20!.%ext% if NOT exist %outdir%\!New-19!.%ext% set newfile=!New-19!.%ext% if NOT exist %outdir%\!New-18!.%ext% set newfile=!New-18!.%ext% if NOT exist %outdir%\!New-17!.%ext% set newfile=!New-17!.%ext% if NOT exist %outdir%\!New-16!.%ext% set newfile=!New-16!.%ext% if NOT exist %outdir%\!New-15!.%ext% set newfile=!New-15!.%ext% if NOT exist %outdir%\!New-14!.%ext% set newfile=!New-14!.%ext% if NOT exist %outdir%\!New-13!.%ext% set newfile=!New-13!.%ext% if NOT exist %outdir%\!New-12!.%ext% set newfile=!New-12!.%ext% if NOT exist %outdir%\!New-11!.%ext% set newfile=!New-11!.%ext% if NOT exist %outdir%\!New-10!.%ext% set newfile=!New-10!.%ext% if NOT exist %outdir%\!New-09!.%ext% set newfile=!New-09!.%ext% if NOT exist %outdir%\!New-08!.%ext% set newfile=!New-08!.%ext% if NOT exist %outdir%\!New-07!.%ext% set newfile=!New-07!.%ext% if NOT exist %outdir%\!New-06!.%ext% set newfile=!New-06!.%ext% if NOT exist %outdir%\!New-05!.%ext% set newfile=!New-05!.%ext% if NOT exist %outdir%\!New-04!.%ext% set newfile=!New-04!.%ext% if NOT exist %outdir%\!New-03!.%ext% set newfile=!New-03!.%ext% if NOT exist %outdir%\!New-02!.%ext% set newfile=!New-02!.%ext% if NOT exist %outdir%\!New-01!.%ext% set newfile=!New-01!.%ext% if NOT exist %outdir%\!New!.%ext% set newfile=!New!.%ext% goto xnfend :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: now that we have the new file's name, we can print that :: to the screen, then figure out what the command line :: arguments should be. after that, depending on if we're :: encoding one file or a whole directory, if we're supposed :: to delete the wav's afterward or not, or some combo, we :: decide now to run x3enc.exe :xnfend if %newfile%==full goto Max set arg=-b %bitrate%000 if %bitrate%==1 set arg=-v1 if %bitrate%==30 set arg=-v30 if %bitrate%==50 set arg=-v50 if %bitrate%==75 set arg=-v75 if %bitrate%==100 set arg=-v100 if %optn%==enc call c:\progra~1\Rc-MP3\x3enc.exe %file% %newfile% %arg% if %optn%==enc if %coder%==X3v102 if NOT %outdir%==active move %newfile% "%outdir%\" if %optn%==delenc call c:\progra~1\Rc-MP3\x3enc.exe %file% %newfile% %arg% if %optn%==delenc if %coder%==X3v102 if NOT %outdir%==active move %newfile% "%outdir%\" if %optn%==delenc del %file% if %optn%==direnc if %outdir%==active call c:\progra~1\Rc-MP3\x3enc.exe %file% %file% %arg% if %optn%==direnc if NOT %outdir%==active call c:\progra~1\Rc-MP3\x3enc.exe %file% %outdir% %arg% if %optn%==dirdelenc if %outdir%==active call c:\progra~1\Rc-MP3\x3enc.exe %file% %file% %arg% if %optn%==dirdelenc if NOT %outdir%==active call c:\progra~1\Rc-MP3\x3enc.exe %file% %outdir% %arg% if %optn%==dirdelenc del %file%\*.wav goto end :blade :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: BladeEnc is lots easier to code for than x3enc. Blade :: does almost everything on it's own. All we have to do is :: tell BladeEnc what it is we wanna do, and it does the rest if %optn%==enc if %outdir%==active call c:\progra~1\Rc-MP3\BladeEnc.exe -%bitrate% -PRIO=%priority% -QUIT %file% if %optn%==enc if NOT %outdir%==active call c:\progra~1\Rc-MP3\BladeEnc.exe -%bitrate% -PRIO=%priority% -QUIT -OUTDIR=%outdir% %file% if %optn%==delenc if %outdir%==active call c:\progra~1\Rc-MP3\BladeEnc.exe -%bitrate% -PRIO=%priority% -QUIT -DELETE %file% if %optn%==delenc if NOT %outdir%==active call c:\progra~1\Rc-MP3\BladeEnc.exe -%bitrate% -PRIO=%priority% -QUIT -DELETE -OUTDIR=%outdir% %file% if %optn%==direnc if %outdir%==active call c:\progra~1\Rc-MP3\BladeEnc.exe -%bitrate% -PRIO=%priority% -QUIT %file%\*.wav if %optn%==direnc if NOT %outdir%==active call c:\progra~1\Rc-MP3\BladeEnc.exe -%bitrate% -PRIO=%priority% -QUIT -OUTDIR=%outdir% %file%\*.wav if %optn%==dirdelenc if %outdir%==active call c:\progra~1\Rc-MP3\BladeEnc.exe -%bitrate% -PRIO=%priority% -QUIT -DELETE %file%\*.wav if %optn%==dirdelenc if NOT %outdir%==active call c:\progra~1\Rc-MP3\BladeEnc.exe -%bitrate% -PRIO=%priority% -QUIT -DELETE -OUTDIR=%outdir% %file%\*.wav goto end :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: I had this seperate because when I used L3Encode to make :: the mp3's, I used to check for those too, but I don't do :: that anymore because and I just don't wanna move it around :check if NOT exist %newfile% pause goto end :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: this is what we'll show if we were unable to come up with :: a temporary file name for the mp3 when trying to decode. :Max_tmp echo. echo. echo. I am sorry but you cannot decode more than 15 mp3's at a time. echo. echo. echo. Press any key to close this window... c:\progra~1\Rc-MP3\getchar.com goto end :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: this is what we'll show if we were unable to come up with :: a file name for the new wav or mp3. maximunm of 30 files :Max echo. echo. echo. I am sorry but you must rename some of the !New-##!.%ext% files before I can continue. echo. echo. echo. Press any key to close this window... c:\progra~1\Rc-MP3\getchar.com goto end :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: pretty self explanitory. :nowavs echo. echo. echo. No .WAV files were found here to encode. echo. echo. echo. Press any key to close this window... c:\progra~1\Rc-MP3\getchar.com goto end :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :: now that we're done, we can "turn off" the color ANSI if :: it was loaded, then use exit to close the dos session. :end if %TheOS%==Win95 echo exit